﻿using CoreModule;

using EasyNetQ;

using (var bus = RabbitHutch.CreateBus("host=192.168.210.200:36005;virtualHost=/;timeout=60;username=admin;password=123456")) {
    bus.PubSub.Subscribe<TextMessage>("unitysir_id", msg => Console.WriteLine(DateTime.Now + "-订阅消息: {0}", msg.Text),topic=>topic.WithTopic("us.msg"));
    Console.ReadLine();
}